Repository navigation
web: tree sections + stop duplicating Results (#11) - #17
Conversation
7aff51a to
f681e9f
Compare
Code4me2
left a comment
There was a problem hiding this comment.
MERGE
Adversarial review of #17 vs main (722da04…f681e9f). Checklist items hold. No merge-blocking bug in this PR's scope; no fix pushed.
Checklist
Stage Results must not also mount inspector Results — PASS.
inspectorTabsFor("results") drops the Results inspector tab. effectiveInspectorTab("results", "results") mounts Properties instead. Inspector renders from those helpers, not raw inspector_tab. Stage click that would stack tab=results + itab=results writes itab=properties. Stage still mounts one ResultsPanel under [data-stage-panel="results"].
Existing G4 inspector e2e stays on Viewport (openInspector sets itab only). G4.5 still opens { tab: "viewport", itab: "results" }. New e2e asserts [data-inspector-panel="results"] and [data-inspector-tab="results"] have count 0 after the Results stage click.
Tree sections closed + empty-honest — PASS.
PROJECT_TREE_SECTIONS is the closed list Analyses / Docs / Globals / Imports / Materials. Default open is an empty Set (all aria-expanded="false"). Expanded body is EmptyState only — no data-source, no registry walk, no invented catalog. Engine still has no HTTP projection; the absence is named, not filled.
G4.2 still counts [data-tree-row="geometry"]. New rows are data-tree-row="section". No recount of build geometry.
GitDirty one-line blob paths — PASS.
Zero diff on GitDirty.tsx / GitDirty.module.css. #5 ellipsis rules (overflow: hidden, text-overflow: ellipsis, white-space: nowrap, no word-break: break-all) and the existing rail unit tests are untouched. GitDirtyPanel remains a sibling under the rail (Shell.tsx); this PR does not hide .heph/ rows. Rail is overflow: auto, so expanding a section scrolls, it does not clip the working tree out of the DOM.
G4 / G5 not weakened — PASS.
No G4/G5 harness, viewport, stream, or pin-authority file is edited. G5.6 (observeCurrent is a no-op while held) is unchanged. Additive tests only; the existing part-views tab test got stricter, not looser.
Web-only — PASS.
Eight files, all under web/. No opstore/, no pytest, no flake mix-in. Do not land the concurrent same-hash blob fix here; that is #23.
Non-blocking findings (do not expand scope)
-
PR body is wrong about restore. Clicking Stage Results writes
inspector_tab: "properties". Switching back to Viewport therefore stays on Properties. A deep linktab=results&itab=resultsremaps display only, so that path does restore Results on Viewport. Both paths satisfy the no-duplicate rule; they are not the same state machine. The browser-verification sentence claiming restore after a click is false. -
URL can disagree with the visible inspector tab.
decodeWorkspaceUrldoes not applyeffectiveInspectorTab. A stackedtab=results&itab=resultsURL keepsitab=resultswhile the drawer shows Properties. Reload still shows Properties. §4.5's "drawer selection is the URL" is slightly bent on that one stack. The click path writes the honestitab. Not a duplicate-Results bug. -
e2e comments overclaim §13.1.
part-views.spec.tssays expanding Materials must not hide dirty rows and that the page still addresses them. The test never queries[data-dirty],git.dirty[].path, or a blob path. Unit tests onGitDirtyViewstill cover the one-line path. The new e2e does not. -
Sections tree has no tab stop. Every section
TreeRowisselected={false}, sotabIndex={-1}. The parts tree gets a tab stop from the selected part; this secondrole="tree"does not. Keyboard cannot enter Analyses…Materials. Pre-existingTreeRowpattern, not a checklist failure.
CI
web (node) and lint + type are green on f681e9f. An earlier server (shard 0/3) failure is outside this diff. Do not mix opstore flake repair into this PR.
Verdict: MERGE. Does not close #4.
When the stage tab is Results, omit the inspector Results tab so the geometry list and metrics are not drawn twice. The project tree always lists Analyses / Docs / Globals / Imports / Materials, closed and empty when the engine has no projection. Git dirty one-line paths are unchanged. Tracking #11. Does not close #4. Co-authored-by: Vel <Code4me2@users.noreply.github.com>
f681e9f to
f202007
Compare
Tracking: #11. Parent: #4. Does not close #4.
Why
Two layout defects after #6:
ResultsPaneland the inspector still showed Results — duplicate list/metrics when?tab=results.What this PR ships
1. No duplicate Results
When the stage tab is Results, the inspector omits that tab and mounts Properties instead. A click that would stack
tab=results+itab=resultswritesitab=properties. Existing inspector e2e stays scoped under[data-inspector-panel="results"]and still runs on Viewport (the default stage tab).Helpers:
inspectorTabsFor,effectiveInspectorTabinweb/src/state/workspace.ts.2. Closed project-tree sections, empty-honest
The rail always lists Analyses / Docs / Globals / Imports / Materials, closed. The engine has no HTTP projection for those inventories (
GET /projectis still{root, name, units, parts[], …}), so an expanded section is an empty-honest absence — no invented catalog, nodata-sourcefacts.Selectors:
[data-tree-row="section"],[data-tree-section],[data-tree-section-empty]. Existing[data-tree-row="part"|"geometry"]are unchanged.3. Git dirty stays visible
GitDirtyis not rewritten. One-line.heph/blobs/…paths from #5 remain. §13.1 reports a dirty tree; this PR does not hide those rows.Test
393 unit tests passed (including new inspector-tab and section-inventory cases). Typecheck and lint succeeded. Existing rail git-path cases still pass.
Browser verification (Vite client + local mock of existing GET reads; this environment cannot run
heph serve— bwrap is not on PATH):data-sourcecatalog..heph/blobs/sha256/…path on one line.New e2e in
web/e2e/part-views.spec.tsfor when the G4 harness runs. Full G4 e2e was not re-run here.G4/G5 are not weakened. Product names appear in prose only.